package org.neowei.image.commond.Handle;

import org.neowei.image.api.ImageOption;
import org.neowei.image.commond.CmdOption;

public class ResizeHandle extends AbstractHandle {

	@Override
	public void doHandle(ImageOption imageOption)  throws Exception {
		CmdOption cmdOption = super.getCmdOption("convert");
		cmdOption.AddRow("-resize", super.getStrHeightWidth(super.imageOption.getNeowidth(), super.imageOption.getNeoheight()));
		super.crop(cmdOption);
	}
}
